modified observerPatternMatch to according to the changes of DesignPattern.java