Gravar-mail: Investigations in Stellar Spectroscopy: I. A Quantitative Method of Classifying Stellar Spectra