Homework 3: Bit Manipulation