An example of Observer pattern.