Added code to create and modify a vertex