how to write domain and range of a graph