Zaslat SMS: The variational principles of mechanics