Made a path constructor function