mpc sampler tutorial