add table construct function for classes table