added sample events and event handler that processes the events