added publisher/subscriber example with new helper