observer pattern added to class diagram