added Main java file