using Groovy categories to better integrate with Frege data structures