How do I save object variables and later load them for each instance?