An introductory treatise on dynamical astronomy