A ruby program that uses the Rydberg formula to calculate the wavelengths of spectral lines of hydrogen-like chemical elements