Create max and min