the observable class is used to create sub classes that other parts of your program can observe.
-when an object of such a subclass undergoes a change, observing classes are notified.
-observing classes must implement the observer interface, which defines the update().
-the update() method is called when an observer is notified of a change in a observed obj.