solve exercise 25.19