make example easier to understand
added examples of sync and async messaging