Implement minimum, maximum, sum and product