<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_question(self, question):
 """Writes a question to the packet"""

        self.write_name(question.name)
        self.write_short(question.type)
        self.write_short(question.clazz)