Example of observer pattern.