Two types of internal boundaries, five classes of railroads and six classes