Add the solution to Exercise 3.2.