Optical system design