Added promise to quizFactory