organizing .rb files; add ending.rb