solve exercise 25.16