Exercise 2.5 Nicholas Mobley