beginning functionality for sending messages