Bayesian homework 2