basic graph working