PubSub pattern

My implementation :)