solve exercise 20.34