+ minValue / maxValue sample code.