Basics of magic