Discrete Math Practice with Groovy