homework 5 exercise 1