Implemented list_index for tasks