groovy code for learning