added a basic graph creator