add serialization example