continued work on Main.java