PubSub using defineProperty method