A History of the Economy: From Barter to Bitcoin