Celestial mechanics and dynamical astronomy