Implements controller
Merge pull request #4 from 284km/feature/controller

Implements controller