Springer, 2010, 308 p. In our presentation of the material we have tried, where possible, to replace intuitive motivations and scientific folklore by exact proofs or direct computations. To illustrate how classical-mechanics formalism works in other branches of theoretical physics, we have presented examples related to electrodynamics, as well as to relativistic and quantum mechanics. Most of the suggested exercises are directly related to the main body of the text.