Entity class updated with more interactivity methods. Constructor of
Entity creates the entity object.