A systems approach for use at farm level in developing countries