Completed Root.java