Add FileWriter to class to encapsulate writing.