solve exercise 24.15