- renamed handleNewEvent functions to handleNewValue
- added sample and test to go with it