added worker code example