formatted the java class