Adding event class