completed part3 of hw3