Fix/writerexample

Improved example of Writer usage.