solve exercise 9.1