Here is an example of how an observing class could be setup.