update example to include mcmc