Added code for message sending example