begin serialization example