Added base controller class