Astronomers arrange the stars into groups called spectral classes (or types) according to the kinds of lines they find in their spectra. These spectral classes are arranged in order of: