Ecological contract and green economy