Added min and max methods