Controller and example application