Principles of mechanics