Added an implementation of Observer Pattern.