implemented update method in Domain Entity