Create controller.py

Basic implement of a controller.