Added a "demand" method to the agent class.

Edited "cobb_douglas_comp_eqbm" function to use the demand method in its calculations.