The second variant of the observer pattern