Finished code for event, untested
Merge branch 'master' of https://github.com/billliu1992/cs411project