part 3 of HW2