Completed Exercise 5

with some help from Roland.