"One of the first instances of a stored computer program was in 1801, when Joseph Marie Jacquard demonstrated a loom that wove fabrics based on hole-punched cards that were fed into the machine."
that's exacly how early computers worked.