homework 4 output file