Please choose the correct answer to the question: Which of the following allows the planets to stay in orbit?

Answer1: the Moon's gravity Answer2: the Sun's gravity Answer3: magnetism Answer4: rotation

Answer format: answer1/answer2/answer3/answer4