exercise 2.38 completed