Refactored to use local Trivia object