refactored and added attributes for the employee