Adding save and read capabilities for objects