changed DirectedPackage to Entity