Here is the for loop,, I hope this is not considering attaching a solution to the question? Thank You! Human h1 = new Human("GrandFather1",true,23 ); Human h2 = new Human("GrandMother1",false,20); Human h3 = new Human("GrandFather2",false,12); Human h4 = new Human("GrandMother2",true, 42); Human h5 = new Human("Father", true , 12, h1,h2); Human h6 = new Human("Mother", false , 12, h3, h4); Human h7 = new Human("children1", false , 12, h5,h6); Human h8 = new Human("children2", true , 12, h5, h6); Human h9 = new Human("children3", false , 12,h5,h6); for (int i = 1;i<10;i++){ System.out.println("h" + i); }