HW6, part 3