Title: A theory of franchising