Exercise 2.2 completed