upadted app.rb