Controller class definition