solve exercise 25.04