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.
Q: Premise: Brad spent his entire week studying for his classes. 
 Initial Context: He wasn't satisfied when he found out that he had a history exam. 
 Original Ending: Instead of studying on the weekend, he just slept. Since he wasn't prepared, he ended up failing the test. He wasn't mad at all since he knew that he didn't study. 
 New ending: Instead of sleeping all weekend, he just studied. Since he was prepared, he ended up doing great on the test. He wasn't surprised at all since he knew that he studied. 
A: 
He was excited to study when he found out that he had a history exam.