creating array of graphs