Coupled modes and the nonlinear Schrödinger equation