Code complete Sampler Class