Fixed Vertex class to have public properties.