sample implementation of controller