change java version
add reafctoring using class