Basic serialization and deserialization works