The class name per column is the same for the whole table. I propose creating a array with a entry for each column before building the table (so around line 255).