Some simple groovy code fragments