make a primitive cons-pair printer that handles cycles