Examples from Making Java Groovy book