solve exercise 25.14