Create a base controller