added constructor

for entity class