sample graph working