add a new constructor to VertexArray