HW Assignments 18 and 18b