How To Design A Diffraction Grating