Added an Entity constructor