Implements Observer class.