finish hw4-part3