got first step of graphs working