add base
add vertex
implemented initialit
add to line