added end-event example