working on #7 - adding file output