In ancient Rome a collegium was a club or society, a group of people living together under a common set of rules .