Exercise 10.6 solved