exercise 2.36 completed