Moved example code from Bayesian model to manuscript code file.