solve exercise 24.09