HW4: output files