Current version of Main.java -- still need to work on it!