added interface to Entity