finished part b of question 2