addVertices method