added functions to draw lines in space