 A Midrash taught that fools enter the synagogue, and seeing people occupying themselves with the law, ask how a person learns the law.They answer that first a person reads from children's materials, then from the Torah, then from the Prophets (, "Nevi'im"), and then from the Writings (, "Ketuvim").Then the person learns the Talmud, then the law (, "halachah"), and then the Midrash (, "haggadot").