adding main.java