add class Thread