Define task_t type.