Given the task definition and input, reply with output. 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.

Daniel didn't know how to ride a motorcycle. He signed up for motorcycle lessons before he bought one. The instructors taught him the basics of riding. Daniel bought a motorcycle to pass the riding exam with. Daniel passed with flying colors and now enjoys riding his motorcycle.
Why did Daniel buy a motorcycle?
he needed a motorcycle to take his riding exam with.