added EventCollection class