How does gravity affect the sun earth-moon system?