You may find it helpful to read Solution 3.27 before tackling this question.