Adding mark to the vertex class