Serialized the objects