add new separate file writer class