func: function payForTask(uint256 taskId, uint256 reward) public isLastestVersion {
          require(reward > 0);
          uint index = safeIndexOfTaskId(taskId);
          token.transferFrom(tx.origin, this, reward);
          tasks[index].reward += reward;
          totalReward += reward;
          TaskPayed(taskId);
      }