Made controllers objects instead of classes.