Sampling

Assignment attached as file.