add TaskMaster class (untested) with run method; add driver code