solve exercise 31.11