Theory of architecture