add publish/subscribe example