Working Gibbs sampler