changed class and java