Start on sampler for code