contract CreateToken is StandardToken, Ownable {
    using SafeMath for uint256;
    
    /// @dev Reverts if address is 0x0 or this token address
    modifier validRecipient(address _recipient) {
        require(_recipient != address(0) && _recipient != address(this));
        _;
    }
    
    constructor(
        string _name,
        string _symbol,
        uint256 _decimals,
        uint256 _totalSupply
        ) public
    {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        totalSupply = _totalSupply * (10 ** _decimals);
        balances[msg.sender] = totalSupply;
    }
    
    /**
    * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender.
    * @param _spender address The address which will spend the funds.
    * @param _value uint256 The amount of tokens to be spent.
    */
    function approve(address _spender, uint256 _value)
        public
        validRecipient(_spender)
        returns (bool)
    {
        return super.approve(_spender, _value);
    }
    
    /**
    * @dev Transfer token for a specified address.
    * @param _to address The address to transfer to.
    * @param _value uint256 The amount to be transferred.
    */
    function transfer(address _to, uint256 _value)
        public
        validRecipient(_to)
        returns (bool)
    {
        return super.transfer(_to, _value);
    }
    
    /**
    * @dev Transfer tokens from one address to another.
    * @param _from address The address which you want to send tokens from.
    * @param _to address The address which you want to transfer to
    * @param _value uint256 the amout of tokens to be transfered. 
    */
    function transferFrom(address _from, address _to, uint256 _value)
        public
        validRecipient(_to)
        returns (bool)
    {
        return super.transferFrom(_from, _to, _value);
    }
    
}
function transfer(address _to, uint256 _value)
    public
    validRecipient(_to)
    returns (bool)
{
    return super.transfer(_to, _value);
}

/**
 * @dev Transfer token for a specified address.
 * @param _to address The address to transfer to.
 * @param _value uint256 The amount to be transferred.
 */