Homework problem 1 completed