implemented pubsub model
Merge pull request #1 from arnellebalane/pubsub-model

implemented pubsub model