hw3 part3b finished