What is a franchise agreement and how does it work?