early Grails program, written for version 1.3.7 in late 2010 and updated to 2.2.4