basic version of graph