added a graph of the function