updated BAyes exercise and solution code