Gibbs sampling working as expected