add event object, build a simple demo