Charles Babbage is considered the father of the computer. He began designing the difference engine in 1821. The abacus, invented over 5000 years ago in China, was one of the earliest devices used for calculation. The first generation of computers from 1940-1956 used vacuum tubes as their electronic technology. The ENIAC was the first electronic digital computer and used around 18,000 vacuum tubes. Transistors replaced vacuum tubes in the second generation from 1956-1963, and integrated circuits replaced transistors in the third generation from 1964-1971.