work on a simpler writer class