Add code example of publish/subcribe