JRuby exercise