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: Lady the Malamute pulled on her chain until her collar came off.
Initial Context: Lady ran away from her home, but her humans saw her leave.
Original Ending: Lady's humans followed her on foot through the neighborhood streets. Lady got tired, and sat down on the sidewalk to wait for her humans. Lady's humans caught up, put her collar on her, and took her home.
Counterfactual Context: Lady decided to stay beside the chain.

SOLUTION: Lady's humans calmly and reassuringly walked up to where she was standing. Lady got tired and decided to take a seat in the same place in the yard. Lady's humas put her collar back on and praised her for being so well behaved.

PROBLEM: Premise: Dana waited for her cousin to bring her lawn mower back.
Initial Context: She waited and waited, wondering where he was.
Original Ending: Finally, she called Al's house. Al's wife, Nudge, said Al had left five hours ago. Al sat drowning his sorrows at the People's Pub.
Counterfactual Context: She waited and waited, and finally he brought it.

SOLUTION: Finally, she called Al's house. Al's wife, Nudge, said Al had left five hours ago. Dana thanked Al's wife for telling the truth.

PROBLEM: Premise: Jill couldn't control her spending.
Initial Context: She needed to save money.
Original Ending: But she kept buying things that she didn't need. She asked her parents for money to pay the bills. But she ended spending it all on new shoes.
Counterfactual Context: She started to follow a budget and it made all the difference.

SOLUTION:
She kept ignoring things that she didn't need. She asked her parents for help budgeting too. She ended up developing better spending habits.