Changed global event behavior. Added 6-th example