Added the pipelining example
Add pubsub example