Actually add in problem 2 part b (partially done)