Create BaseController.java

class with common features for all Controllers