Incomplete first attempt at Bayesian code