The teacher gave us an assignment in class to write a short story.
I was able to finish the story in time for class the next day.
I decided to write a story last second.
I decided to write a story in advance.