Luminosity Classes of Stars; Determining the Distance to a Star Using Spectroscopic Parallax