Make serializable and deserializable