code executing for 4 tasks