solve exercise 25.10