solve exercise 22.09