first step in graph implementation