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