solve exercise 21.02