Finish Homework 5 - Exercise 3