created pubsub example