Edited so main.java should run with console