the java code in other packages can be imported instead of copying