adding a java class