In this task you are given a short story and a question regarding that story. You must answer the question based on the events of the story. Try to use the same words in the story to answer each question. You should completely answer the question in a short answer. Do not include information that is unnecessary to answer the question.

Let me give you an example: Charlie was unemployed though she was a good worker. Charlie needed to seek work quickly to keep up with paying bills. Charlie looked in the classified ads for a job and found one. Charlie went to company headquarters and applied in person. Charlie arrived at the interview prepared and was given a job offer.
Why did Charlie go to company headquarters?
The answer to this example can be: she was applying for a job.
Here is why: the answer can be inferred from the fourth sentence, and completely answers the question.

OK. solve this:
I waited in front of the class until it started. After several minutes, I was wandering around. One of my friends showed up to the front door. He told me that class was cancelled. I decided to spend one to two hours in the computer lab.
Why did I wait in front of the class?
Answer:
After several minutes, I was wandering around.so I waited in front of the class.