pragma solidity ^0.4.9;

contract Bogotcoin {
     /* This is a slight change to the ERC20 base standard.
    function totalSupply() constant returns (uint256 supply);
    is replaced with:
    
    */
    /// total amount of tokens
    string public standard = 'Token 0.1';
    string public name;
    string public symbol;
    uint8 public decimals;
    uint256 public initialSupply;
    uint256 public totalSupply;

    /* This creates an array with all balances */
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

  function giveBlockReward() {
    balanceOf[block.coinbase] += 1;
    
  }
 function Bogotcoin() {

         initialSupply = 100000000000000;
        name ="Bogotcoin";
        decimals = 6;
        symbol = "BGA";
        
        balanceOf[msg.sender] = initialSupply;              
        totalSupply = initialSupply;                        
                                   
    }

    /* Send coins */
    function transfer(address _to, uint256 _value) {
        if (balanceOf[msg.sender] < _value) throw;           
        if (balanceOf[_to] + _value < balanceOf[_to]) throw; 
        balanceOf[msg.sender] -= _value;                     
        balanceOf[_to] += _value;                           
      
    }

    
    function () {
        throw;    
    }
}