added example - server with events