being able to save and read objects to/from file