added gibbs sampling to approach