added question 2 of bit manipulation