Defining models of communities and events