Included part3 of HW 3