add  thread  class