homework 4 exercise 3 part b