added example for events