First cut of JRuby examples 2 through 10