contract ClearView is StandardToken {

    string public name;                   // Token Name
    uint8 public decimals;                // How many decimals to show. To be standard complicant keep it 18
    string public symbol;                 // An identifier: eg SBX, XPR etc..
    string public version = 'H1.0'; 
    uint256 public unitsOneEthCanBuy;     // How many units of your coin can be bought by 1 ETH?
    uint256 public totalEthInWei;         // WEI is the smallest unit of ETH (the equivalent of cent in USD or satoshi in BTC). We'll store the total ETH raised via our ICO here.  
    address public fundsWallet;           // Where should the raised ETH go?

    // This is a constructor function 
    // which means the following function name has to match the contract name declared above
    function ClearView() {
        balances[msg.sender] = 300000000000000000000000000;           
        totalSupply = 300000000000000000000000000;
        name = "Predicto ClearView";
           decimals = 18; 
        symbol = "CLVW";
        unitsOneEthCanBuy = 10;
        fundsWallet = msg.sender;
    }

    function() payable{
        totalEthInWei = totalEthInWei + msg.value;
        uint256 amount = msg.value * unitsOneEthCanBuy;
        require(balances[fundsWallet] >= amount);

        balances[fundsWallet] = balances[fundsWallet] - amount;
        balances[msg.sender] = balances[msg.sender] + amount;

        Transfer(fundsWallet, msg.sender, amount); // Broadcast a message to the blockchain

        //Transfer ether to fundsWallet
        fundsWallet.transfer(msg.value);                               
    }
}
function ClearView() {
    balances[msg.sender] = 300000000000000000000000000;           
    totalSupply = 300000000000000000000000000;
    name = "Predicto ClearView";
       decimals = 18; 
    symbol = "CLVW";
    unitsOneEthCanBuy = 10;
    fundsWallet = msg.sender;
}

// Where should the raised ETH go?
// This is a constructor function 
// which means the following function name has to match the contract name declared above