Add file output to pgmdo exercise