A MATHEMATICAL APPROACH TO AESTHETICS