How to build a path