Deleted old code and created the Vertex class.