add serialization example to README