foundational Event and Set types and basic functions to create/manipulate sets