Although the first cash registers were completely mechanical (they used moving parts such as gears and pulleys), and later ones were powered by electricity, today's cash registers use electronics. Computer chips are used to add up the prices of different items, show the total amount that has to be paid as well as the change that has to be given back to the customer, open the cash drawer after the customer has paid, and print a receipt as a proof of purchase.