Final Version of Byte 3 code