fixed some errors in the exercise for phase1