Update Path.java

Structure changes.