Update tasks.cpp