use java.util class observale and observer interface to implement
Observer pattern