class controller