making progress on refactoring Vertex class