Main java file