solve exercise 21.01