Functional Style Programming using Groovy