Added class for object serialization