What role does gravity play in the orbit of planets?