Sample code snippet for Groovy learning made easy