Started implemented the generic sendMessage function in peer