Numerical Simulation of Mechanical Systems