cleaned Main.java