homework 5 exercise 2 part i