solve exercise 23.07