programHierarchy.java completed