solve exercise 19