created fileWriter class