<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_string(self, value, length):
 """Writes a string to the packet"""

        format = '!' + str(length) + 's'
        self.data.append(struct.pack(format, value))
        self.size += length