added sample send message function