Samples of publisher and subscriber.