Worked on Sampler class