Moving work to a Sinatra framework