mcmc implemented for extended example