Similar to the exercise outlined in section 4