Using Natural Resources in an Optimal Way