Exercise: write report to file