solve exercise 21.07