package com.thoughtworks.btu;

public class Launcher {

    public static final int START = 1;
    public static final int END = 100;

//    public static void main(String[] asdf) {
//        Scanner scanner = new Scanner(System.in);
//        while (scanner.hasNext()) {
//            Teacher.build(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
//            Student student = new Student();
//            for (int i = START; i <= END; ++i) {
//                System.out.println(student.answer(i));
//            }
//        }
//    }
}

@@ -28,71 +28,168 @@
 u;%0A%0A
-public class Launcher %7B%0A%0A    public static final int START = 1;
+import com.thoughtworks.btu.rule.Rule;%0Aimport com.thoughtworks.btu.rule.RuleFactory;%0A%0Aimport java.util.List;%0Aimport java.util.Scanner;%0A%0Apublic class Launcher %7B%0A
 %0A   
@@ -213,19 +213,21 @@
 nal int 
-END
+COUNT
  = 100;%0A
@@ -227,18 +227,16 @@
 = 100;%0A%0A
-//
     publ
@@ -268,26 +268,24 @@
 g%5B%5D asdf) %7B%0A
-//
         Scan
@@ -322,18 +322,16 @@
 em.in);%0A
-//
         
@@ -354,26 +354,24 @@
 asNext()) %7B%0A
-//
             
@@ -381,14 +381,57 @@
 cher
-.build
+ teacher = new Teacher();%0A            teacher.say
 (sca
@@ -481,26 +481,175 @@
 nextInt());%0A
-//
+            List%3CRule%3E rules = RuleFactory.build(teacher);%0A            for (int i = 0; i %3C COUNT; ++i) %7B%0A                Integer location = i + 1;%0A    
             
@@ -678,21 +678,29 @@
 Student(
+location
 );%0A
-//
+  
         
@@ -707,104 +707,219 @@
     
+  
 for (
-int i = START; i %3C= END; ++i) %7B%0A//                System.out.println(student.answer(i));%0A//
+Rule rule : rules) %7B%0A                    if (student.isConformBy(rule)) %7B%0A                        System.out.println(student.say());%0A                        break;%0A                    %7D%0A                %7D%0A
     
@@ -924,26 +924,24 @@
           %7D%0A
-//
         %7D%0A//
@@ -942,10 +942,8 @@
   %7D%0A
-//
     

update Launcher class