solve exercise 21.09