Wrote printPaths