Complete naive (limited error checking)  implementation of console ui.