implementation of simple worker task and the worker framework