using public event class