working on refactored quiz