fixing syntax error and finished up to slide 43