Refactors into a Sinatra app