Trying to get the graph to show up

Fixed errors, changed the functions. Still having trouble getting graph
to show up.