solve exercise 24.25