 In 1671, Leibniz began to invent a machine that could execute all four arithmetic operations, gradually improving it over a number of years.This "stepped reckoner" attracted fair attention and was the basis of his election to the Royal Society in 1673.A number of such machines were made during his years in Hanover by a craftsman working under his supervision.