Modified hw4 Bitwise