serialization examples