modified java class