updated some code structures for demo bot and controller -- can use for OOP training.