make Main.java a lib