Finish Homework 9 - Exercise 4