Exercise 2 question (d) of homework 2