HW3 part3 a