fix typo, change creation of Message obj
calling the sendMessage function works