Converting app to sinatra