Earth's place in the universe

How did early astronomers explain the motion of the sun and stars?