A history of magic