implement 1-Bit register