Solving problems in bayesian