removed BITS_PER_CHARACTER and replaced it with a variable in the constructor.