Why Do Different Elements Display Different Patterns Of Lines In Their Spectra