solve exercise 39.12