week 4 (huffman) almost completed