Made core a .java file