exercise 2.40