You may have organized the ordered pairs in a table, but then you chose only the least and the greatest values from the input and output as your domain and range. The domain of the function is the set of all input values and the range of the function is the set of all output values.