adding base controller and controller example