add OneBitProtocol

through page 10 in the book