added the Spectrum class