Implemented a path generator