add Serialization to Serialize data to file/stream.