Write a simple thread pool just for practice