solve exercise 13.1