Finish Homework 5 - Exercise 4