added pub sub synchronization example from guide