The second Huffman table should be `class 1 (AC)`. JPEG contains 4 Huffman tables, 2 for DC and 2 for AC. The dissection contains 3 DC and 1 AC. Thank you so much for such detailed dissection. It was extremely helpful :)