implment object serialization/deserialization for persistent storage to a file
this makes me appreciate ios NSUserDefaults a lot more