Getting towards the graph building part