Part 2 of HW4