add first version of event engine
add example script that use this engine