hw3 part3 output