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: Carl received an inheritance when his father passed away. 
 Initial Context: He wanted to invest some of the money. 
 Original Ending: Carl researched many stocks and decided where to invest his money. He chose to help one of his family businesses. Carl made a large investment and secured his family's future. 
 Counterfactual Context: He wanted to invest some of the money into buying a house.

SOLUTION: Carl researched many real estate agents and decided which one to call. He chose to use an agent that looked the friendliest. Carl bought a large house and secured his family's future. 

PROBLEM: Premise: One day at the zoo, I walked over to the gorilla enclosure. 
 Initial Context: A large male silverback gorilla walked out from the corner. 
 Original Ending: He sat in the center of the viewing area, as if posing. He glared angrily at me the entire time I was there. I felt very guilty, like I shouldn't be there looking at him. 
 Counterfactual Context: Unfortunately, no gorillas could be seen, perhaps because they were sleeping.

SOLUTION: Suddenly a large male silverback walked out of an entryway. He glared angrily at me the entire time I was there. I felt very guilty, like I shouldn't be there looking at him. 

PROBLEM: Premise: Fred had always wanted to have a stamp collection. 
 Initial Context: He decides to start buying some stamps. 
 Original Ending: Eventually he has many stamps. He puts them into a small folder. Fred is glad to have a collection of stamps. 
 Counterfactual Context: He decides to save the stamp every time a friend sends a handwritten letter.

SOLUTION:
Eventually he has many stamps. He puts them into a small folder. Fred is glad to have a collection of stamps. 

