Add application code to app.rb