Trying my hand at rendering the graph with core graphics