solve exercise 22.04