solve exercise 43.17