結果 : observer pattern c++ implementation