Control of Mechanical Systems