organize app.rb