Refactored from Task patterns to Parallel class
Refactored from Thread, ThreadPool to Task