Title: The essence of medieval urban communities