added clone method to Entity