Simple reading and writing examples.

See #13.