Made the sinatra app functional