added getters and setters to Entity