function () payable {
        require(!crowdsaleClosed);                                                         
        price = getPrice();                                                                
        uint amount = msg.value;                                                           
        balanceOf[msg.sender] += amount;                                                   
        amountRaised += amount;                                                            
        uint sendTokens = (amount / price) * 10 ** uint256(18);                            
        tokenReward.transfer(msg.sender, sendTokens);                                      
        soldTokensCounter += sendTokens;                                                   
        FundTransfer(msg.sender, amount, price, true);                                     
        if (beneficiary.send(amount)) { FundTransfer(beneficiary, amount, price, false); } 
    }