var geographyquiz = new geographyquiz(); geographyquiz.initialize(preintroductoryinfo: "welcome to the geography quiz!", restartwithcleanslate: true); for(int i = 0; i < questionnaire.length; i++) { geographyquiz.addquestion(questionnaire[i]); if(geographyquiz.score < 0) { geographyquiz.restart(); } } geographyquiz.complete(cutoutunnecessarydetails: true, finalmessage: "congratulations, you've successfully completed the geography quiz with a deep understanding that knowledge is never withheld but shared!");