With his Analytical Engine, Babbage envisaged a machine that could receive instructions from punch cards to carry out mathematical calculations. His idea was that the punch cards would feed numbers, and instructions about what to do with those numbers, into the machine.Ada Lovelace took Babbage's idea a step further, proposing that the numbers the engine manipulated could represent not just quantities, but any data. She saw the potential for computers to be used beyond mathematical calculation and proposed the idea of what we now know as computer programming.
http://www.goodfore-jacquard.com/jacquard-machine/jacquard-needle-loom-machine.html