public void populateQuestionStats()
    {
        for (QuizResult qr : quizResults)
        {
            for (QuizResultRow qrr : qr.ResultRows)
            {
                if (qrr.isCorrect)
                {
                    if(!questionStats.contains(qrr.questionText))
                    {
                        questionStats.add(new QuestionStatistic(qrr.questionText, 1));
                    }
                    else
                    {
                        questionStats.get(questionStats.indexOf(qrr.questionText)).correctAnswers += 1;
                    }
                }
            }
        }
    }