added task class for threadpool
added thread pool