Detailed Instructions: Given a premise, an initial context, an original ending, and a new ending, the task is to generate the counterfactual context that is aligned with the new ending. 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. The original ending is the last three sentences of the story. Also, you are given a new ending that can provide the new story with the same premise. You should write a counterfactual context to explain the small differences between the original and new endings. More specifically, a story context contains the general plot of the story. And a counterfactual context is a slight modification to the initial context. To sum up, you should write the second sentence of a story based on the premise(first sentence) and the new ending(last three sentences) of the story.
Problem:Premise: Jed followed the instructions to compile Chromium OS. 
 Initial Context: He did everything Google's developer page said to. 
 Original Ending: When Jed tried to run the QEMU image, it wouldn't work. Jed spent days on it, getting angrier and angrier. Finally he gave up, and learned to love Windows. 
 New ending: Jed had tried to run the QEMU image, it wouldn't work. Before giving up Jed had spent days on it, getting angrier and angrier. When he finally gave up he learned to love Windows. 
Solution:
He gave up after glancing at Google's developer page.