Updated second task factory task