Adding table classes definition function