import java.util.ArrayList;
import java.util.List;

/**
 * Main Class
 * Entry point of the software project day program
 */

public class Main {

    public static void main(String[] args){
        // TODO Stub fillout

        // Make a new Firm
    	
    	// Ugly but I have to do it this way since there is a cyclic dependency
    	List<TeamLead> leads = new ArrayList<TeamLead>();
    	List<Developer> devs =  new ArrayList<Developer>();
    	List<Developer> devs1 =  new ArrayList<Developer>();
    	List<Developer> devs2 =  new ArrayList<Developer>();
    	List<Developer> devs3 =  new ArrayList<Developer>();
    	
    	// Create Software Project Manager
    	SoftwareProjectManager spm = new SoftwareProjectManager();
    	// Create a firm
    	Firm firm = new Firm(spm);
    	
    	
    	// Create Team Leaders
    	for (int i=0; i < 3; i++) {
    		TeamLead l = new TeamLead("L" + i);
    		l.setManager(spm);
    		l.setFirm(firm);
    		leads.add(l);
    		
    		// Create developers and set everything
    		for (int j=0; j<3; j++) {
    			Developer d = new Developer("D" + (i+j) + 3*i);
    			d.setFirm(firm);
    			d.setTeamLead(l);
    			l.addDeveloper(d);
    		}
    		
    	}
    	
    	// Set team leads
    	spm.setTeamLeaders(leads);

    	
    	// Start the application
    	firm.startDay();

    }
}

@@ -241,21 +241,16 @@
 ew Firm%0A
-    %09
 %0A    %09//
@@ -605,21 +605,16 @@
 per%3E();%0A
-    %09
 %0A    %09//
@@ -714,73 +714,9 @@
 ();%0A
-    %09// Create a firm%0A    %09Firm firm = new Firm(spm);%0A    %09%0A    %09
+%0A
 %0A   
@@ -844,31 +844,8 @@
 m);%0A
-    %09%09l.setFirm(firm);%0A
     
@@ -860,22 +860,16 @@
 add(l);%0A
-    %09%09
 %0A    %09%09/
@@ -998,32 +998,8 @@
 i);%0A
-    %09%09%09d.setFirm(firm);%0A
     
@@ -1057,22 +1057,16 @@
 %09%09%7D%0A
-    %09%09
 %0A    %09%7D%0A
     
@@ -1061,27 +1061,25 @@
 %0A    %09%7D%0A
+%0A
     
-%09%0A
     
-%09
 // Set t
@@ -1125,17 +1125,72 @@
 );%0A%0A    
-%09
+    // Create a firm%0A        Firm firm = new Firm(spm);%0A
 %0A    %09//

update main