HW3 Part3 a and b finished