Finish Homework 5 - Exercise 2