Making a report en printing data to file