WIP
WIP towards repeat while construct
WIP
WIP
Much better; still not quite there
debugging