Fix example code.
Merge pull request #102 from ursm/patch-1

Fix example code in Writer.