How did you think of all the puzzles and codes for The Eleventh Hour?

I simply got a book on codes and puzzles out of the local library. That easy!