The rational peasant