SMS: The variational principles of mechanics