lab3: done hamming decoding