Code snippets for groovy