solve exercise 25.05