require 'Master'
require 'Slave'
-include MSG
+# include MSG
-# raise "Bad Number Of Arguments" if ARGV.length != 2
+raise "Bad Number Of Arguments" if ARGV.length != 2
-# info("Bye")
-
-init(ARGV)
-raise "Bad Number Of Arguments " if (ARGV.length < 2)
-# p Host.number()
-createEnvironment(ARGV[0])
-# p Host.number()
-deployApplication(ARGV[1])
-# p Host.number()
-
-
-# run()
+MSG.init(ARGV)
+# Thread.list.each {|t| p t}
+raise "Bad Number Of Arguments" if (ARGV.length < 2)
+MSG.createEnvironment(ARGV[0])
+# Thread.list.each {|t| p t}
+MSG.deployApplication(ARGV[1])
+# Thread.list.each {|t| p t}
+MSG.run()
+# Thread.list.each {|t| p t}
+MSG.getClock()
# exit()