file writer class added