first working code for consuming very simple serialized classes