updated bayesExercise