Principles of celestial mechanics