exercise 2.52 completed