The history of magic