created class vertex.