Initial commit of controller.py