Exercise 1.8 completed