solve exercise 20.36