added pubsub example