implemented for Employee (same as earlier)