added subscribe example with pubsub extra package