finishing off sinatra api