Now using the Cobb-Douglas with energy function for Q and X. Not yet working for U.