Add answer for exercise 2.31.
Fixed answers for exercise 2.31.1 - 2.31.3.