Question 5.1 corrected for (nBits%8 > 0)