added example application for the external events