Create a new controller class and a factory.