Exercise 5.2 Completed