starting Part 3 of HW3