made a JRuby-version of the Sample files