Dynamic Modeling of Mechanical Systems