This is the Transportation Example in the CHAIMS language as it could be...

PROGRAM Transport (IMPORT ...)

// The Transportation Program in the CHAIMS language.

// In order to solve the problem: Find the best route for a packet, using ground and air transportation could be solved in the CHAIMS language in the following way:

// setup of all Megamodules

// call to the Input Megamodule

// call to the Routeinfo Megamodule to get the routes

// call to the Routeindo Megamodule to get all city pairs of a specific lust of routes

// the two Megamodules Air and Ground can work in parallel

// call to the Air Megamodule

// call to the Bestroute Megamodule

// call to the Output Megamodule