Add writer example.
Add writer tests.