refactored Employee to have pattern flexibility