The Rules of Magic