homework 6 exercise 2 part b