Wrote up solution to question 2 part 1