Added ThreadPool class