solve exercise 49.16