+Rewrite sampleApp to reflect new publish/subscribe module