added class foreach Event type so the type is implied by the instance