New constructor for Entity