created a FileWriter class