created the file with the controller outside the controller class.