<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_message(self, msg_id, location, msg):
 """Client API to send a message"""


        self._messages.append((msg_id,location,msg))