Check out the many-body, “galactic” version here.