<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_boolean(self, b):
 """ Add a boolean value to the stream. :param bool b: boolean value to add """

        if b:
            self.packet.write(one_byte)
        else:
            self.packet.write(zero_byte)
        return self