Section 3 - completed (with help from solutions)