solve exercise 32.12