adding output writer class