function getBonus() {
    address sender = msg.sender;
    require(bonuses[sender] > 0);
    require(bonusUnlockTime[sender]!=0 && 
      now > bonusUnlockTime[sender]);
    tokenReward.transfer(sender, bonuses[sender]);
    bonuses[sender] = 0;
  }