Here's a simulation of a collection of (randomly initialized) moons, acting under the universal law of gravitation, with mass proportional to radius cubed. Press 'R' to restart the simulation, and use 'h', 'j', 'k', and 'l' to shift the viewing area.
Look at them go! See also the source code, and my spacetag game, and my other applets.