Adding Java class