"Research. In case Harry dies before it is his time, I would bring him back to fulfill his role. Dumbledore got me the books, but some of them I bought myself when I disguised myself and bought them in Knockturn Alley."