Utility foundation of a Cobb-Douglas demand function with two attributes