Set class name for each task.