Determination of Rydberg constant using Spectrometer