solve exercise 21.08