Create the base/derived class to handle the worker thread