solve exercise 20.01