ML - assignment 6 on Sampling methods