Added calculateMinimum() and calculateMaximum()