Fixed the setter and getter methods on the trivia class