finish bayesian problem case