Wrote function that generates text for a question