add simple output to Main.java