:add: tasks function and its UTs