created Event class