How were class numbers assigned to Caledonian Railway engines?

A. Based on the chronological order of production
B. Based on the horsepower of the engine
C. Based on the stock number of the first member of the class to reach traffic
D. Based on the type of fuel used by the engine
Answer: 