added initial code for bit manipulation.