Worked on Publisher Subscriber Algo