code samples from Grails in Action