Added constructor and example get/set function to Entity.