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: Kayla was desperate to get her mom a super birthday present.
Initial Context: She knew her mom was hard to shop for and very picky.
Original Ending: Kayla searched all the stores she could think of, and went online. Finally she decided to give her mom a picture of the two of them. Kayla's mom loved the gift and put it in her office.
Counterfactual Context: She knew her mom wanted a all expense paid trip instead.

SOLUTION: Kayla searched all the stores she could think of, and went online. Finally she decided to give her mom a trip to Maldives Kayla's mom loved the gift and excited for the trip.

PROBLEM: Premise: John got a puppy named Buddy for his birthday.
Initial Context: Buddy got really sick one night after eating food from the trashcan.
Original Ending: John stayed up all night with Buddy to make sure he is ok. The next day, John took Buddy to the vet to get a checkup. The vet said Buddy will be back to normal in a few days.
Counterfactual Context: Buddy was very healthy.

SOLUTION: Even so, John still took Buddy to the ver regularly. The next day, John took Buddy to the vet to get a checkup. The vet said Buddy was very healthy.

PROBLEM: Premise: Amy was late for class.
Initial Context: It was the first day and she didn't know where the class was.
Original Ending: When she realized she was in the wrong building she started running. She ran all the way across the quad to get to the right building. When she arrived the scowled as she walked to an empty desk.
Counterfactual Context: It was the first day and she mapped out the exact right room for the class.

SOLUTION:
When she realized she was late she started running. She ran all the way across the quad to get to the right building. When she arrived the scowled as she walked to an empty desk.