Linear and Nonlinear Optics