A program for creating segments
((send (make-seg C 1) 3)))
((make-seg seg-type seg-index)
(and Tube (not C) (not D))
(* (and Bottom C 1 (Waiting (= 0)))
((send (make-seg D 1) 3)))
(* (and Bottom D 1 (Waiting (= 0)))
((send (make-seg C 2) 3)))
(* (and Bottom C 2 (Waiting (= 0)))
((send (make-seg D 2) 3)))
(* (and Bottom D 2 (Waiting (= 0)))
((send (make-seg C 3) 3)))