Added equality comparrison to entity class