refactoring quiz scoring logic I