An alternate implementation of the Pathname class