Add some events code
Finished events demo