add demos of observer pattern.