add a sample messaging code for test