solve exercise 21.06