Add the actual path functionality in Path class