end of Th class