added Event class