solve exercise 14.1