added a console ui class for input/output