Implemented Path class.