Title: Theory of Habitable Planets