add skeleton code for retro_serialize.
(not working)