A Theory of Good Urban Form