Created file writer class