solve exercise 42.16