Added console output in Main.java