Added publisher-subscriber pattern.
Merge master
Merge pull request #2 from jtmzheng/pub-sub

Added publisher-subscribe pattern.