added vertex constructor