Added a test Main.java