Continued implementing TextUI.
Completed first version of TextUI.