Working on the abstraction in quiz.js