Refactoring so that CVertex inherits from CPosition