Groovy version of trivia