       (sort-by (comp :price deref))
       (first))))
 
-(defn reserve [reservation relation n-seats]
+(defn reserve-relation [reservation relation n-seats]
   "Reserve `n-seats` on `relation`, for `reservation`.
 
   Decreases the number of seats in `relation`, and updates the total in

              (ref {:id i :seats (rand-seats) :price (rand-price)})))]
    {:reservations
      (for [i (range n-reservations)]
        (ref {:id i :fulfilled? false :total 0}))
     :cars    (generate-relation)
     :flights (generate-relation)
     :rooms   (generate-relation)}))

(ns vacation2.main
  (:gen-class)
  (:import java.util.Base64)
  (:require [clojure.string]
            [clojure.tools.cli]
            [util :refer :all]))
