exercise 2.51 completed