exercise 2.7 completed