proper demo of serialization/deserialization