first demo implementation of controller