[refactoring] Vertex class introduced.