The theory of beauty