ex2.6 creating and handling application events
ex2.7
ex2.8 chat.js