Change the main method logic,to sent the directory as parameter to the ThreadPool class