A Theory of the Environment and Economic Systems