Nonlinear device