main method and controller class added