hw3 part3 fixed