Update vertex.cpp