doc: add writer example.