Updated Main.java to Scala 2.11.1