Tried out implementing a simple controller pattern