homework 5 exercise 2 part d