<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def put(self, lo, hi):
 """Copy 16-bit value to result."""

        self.buf.append(lo)
        self.buf.append(hi)
        self.pos += 1