<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_pending_after_task(self):
 """ Creates pending task results in a dict on self.after_result with task string as key. It will also create a list on self.tasks that is used to make sure the serialization of the results creates a correctly ordered list. """

        for task in self.settings.tasks[self.after_tasks_key]:
            self.after_tasks.append(task)
            self.after_results[task] = Result(task)