Spell Theory