Added main.java file
Edited main.java