crate event class