Edited hw4 bitwise