Code for mock up demo of thought->text system