Finished framework of Main.java