refactor app.rb para sacar la logica a notebook2revealdomain