Changed class to extend MX_Controller