Add Path class with path-manipulation functions.