function buy() public payable returns (uint amount)  {
        require(buyPrice>0);

        amount = msg.value / buyPrice;                    

        sendToken_internal(msg.sender, amount);

        return amount;                                    
    }