solve exercise 43.18