Worked out the sampler