Adding more examples on how to use notify. The current example is incorrect!

The current example didn't work for me, but this did.