Tom was working on an essay for school.
When it came back on Tom saw that his work was all gone.
The light came on just as Tom's papers were finished.
The light went off, just as Tom's papers scattered everywhere.