new Worker class

changed thread design