adding WriterToFile class
adding WriterToFile class