add exercise 10.6