How Does A Spectrometer Work?