Working on event class