exercise 2.10 completed