add class Path

public class Path implements Comparable<Path> {