curious why you would want to modify the tasks array? maybe indicate in the method name that it would happen. ex: modify_task_index_by_id