added Segments and Paths, Paths not completely implemented yet