Adding vertex class