Adds an observer to the list of observers.
The observer to add.
Invokes the update method of all observers.