adds classes from sections to first td