Object Serialization and De Serialization Method implementation