Added Controller class for solve error #400