The program can now output to files