function buy(address referredBy) antiEarlyWhale startOK public payable  returns (uint256) {
    uint depositAmount = msg.value;
         AdminAddress.send(depositAmount * 5 / 100);
         PromotionalAddress.send(depositAmount * 5 / 100); 
    address investorAddr = msg.sender;
  
    Investor storage investor = investors[investorAddr];

    if (investor.deposit == 0) {
      investorsNumber++;
      emit OnNewInvestor(investorAddr, now);
    }

    investor.deposit += depositAmount;
    investor.paymentTime = now;

    investmentsNumber++;
    emit OnInvesment(investorAddr, depositAmount, now);

        purchaseTokens(msg.value, referredBy, msg.sender);
    }