added pubsub examples