Using sampler objects