solutions for exercise 31 8935286