Exercise 5 Complete

Here is the completed version of exercise 5