solve exercise 32.17