Marginal stability and chaos in the solar system (Lecture)