Added the base controller class