implemented constructor, vertexCount, getVertices