exercise 2.6 completed