Add a thread pool  class