understanding the observer pattern 722421