updated
solutions for bayesExercise