removed import sys from Program()
Refactored controller class