function () public payable {
        
        require(!saleClosed);
        
        
        require(msg.value >= 1 finney);
        
        
        uint256 amount = msg.value * 80000;
        
        require(amount <= pearl.balanceOf(this));
        
        pearl.transfer(msg.sender, amount);
        
        
        funds += msg.value;
        
        
        director.transfer(this.balance);
    }