Elements of the Theory of Mechanics