adding tasks for Multithreading