Adds problem 5 part b.