exercise 2.49 completed