moved interpreting code into Message class

also customized the greeting message for chat example