Implementation of Observer Pattern  using as IDE  IntelliJ IDEA