How Hubble’s colour images are made

How do orbits work?

We might take it for granted, but why do stars, moons, planets or any celestial bodies constantly move around one another?
Space