Added license to main.java