added getVertex method to Model