added Path class
improved path class