Convert app.rb from classic app to modular