More tweaking of example JRuby script