Exercise 2: Solution