Creating the abstractions
Now all we have to do is define RoadVehicle and RailVehicle, but this time they are formal definitions so the model contains the explicit information on what they mean. Immediately after the above add:
(Vehicle which travelsOn road) name RoadVehicle.
(Vehicle which travelsOn rail) name RailVehicle.