example for how to create vertices in a typed way