solve exercise 24.05