Completed the trivia code