solve exercise 19.19