got maximum and minimum values for the range and domain of the graph