implemented Task base class