Extract rendering code into a Renderer object.
Tidy up renderer tests.
Render command line text.
DemoRenderer object.
Extract complex condition as function.