How do planets stay inside the Solar System?

Because of the attraction of the sun.

**********