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: The cat was laying on the window sill. 
 Initial Context: The cat saw a ball on the floor. 
 Original Ending: The cat had never seen a ball. The cat got down and swatted the ball. The cat liked playing with the ball. 
 Counterfactual Context: The cat saw a rat run across the floor.

SOLUTION: The cat had never seen a rat. The cat got down and swatted the rat. The cat liked playing with the rat. 

PROBLEM: Premise: Tim is part of the school soccer team. 
 Initial Context: He was never the best player. 
 Original Ending: Last summer he trained very hard to become better at it. At the last soccer game he scored 3 goals. Because of his good performance they won the game. 
 Counterfactual Context: He is the team's mascot.

SOLUTION: Last summer he trained very hard to become better at it. At the last soccer game he cheered 3 goals. Because of his good cheering they won the game. 

PROBLEM: Premise: Ida was afraid of dentists. 
 Initial Context: But after years of suffering, she gave in. 
 Original Ending: She made herself an emergency dentist appointment. The dentist fixed some of Ida's teeth for her. Ida felt a lot better after that! 
 Counterfactual Context: She refused to go no matter how much her teeth hurt.

SOLUTION:
She made herself check her own teeth. She fixed some of her teeth for herself. Ida felt a lot better after that! 

