Methods of celestial mechanics