TASK DEFINITION: Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story.
PROBLEM: Premise: Jennifer gossiped about her co-worker. 
 Initial Context: Her co-worker heard what she was saying. 
 Original Ending: He talked to her boss about it. Her boss filed a formal complaint on her behalf. Jennifer was forbidden to talk about her co-worker. 
 Counterfactual Context: Her co-worker never heard what she was saying.

SOLUTION: She even gossiped to her boss about him. Her boss filed a formal complaint on the co-workers behalf. Jennifer ended up getting fired. 

PROBLEM: Premise: Billy wanted a car. 
 Initial Context: He tried to get a loan but they said he didn't make enough money. 
 Original Ending: Billy couldn't get a better paying job because he didn't have a car. He saved for nine months, until he had enough money for a car. Now that he has a new car and a new job. 
 Counterfactual Context: He didn't need a loan because he had plenty of money.

SOLUTION: Billy had a good paying job that allowed him to afford the car. He had saved for several months so that he could buy the car outright. Now that he has a car, he has an easier time getting to his job. 

PROBLEM: Premise: The seamstress attempted to thread her machine. 
 Initial Context: The needle broke. 
 Original Ending: She went to the store to purchase more. She made the repair and continued sewing. The dress turned out beautifully. 
 Counterfactual Context: Thankfully, the needle didn't break.

SOLUTION:
She went to the store to purchase more. She continued sewing. The dress turned out beautifully. 

