A simple text editor in JRuby