work on bayes midtem 2 probs 2 and 3