Design And Learning In Mechanical Systems