Diffraction Grating Working Principle