Part1 of HW3 completed