function deposit()
       isOpenToPublic()
     payable public
     {
        
        require(msg.value >= 10000000000000000);
        address customerAddress = msg.sender;

        
        poohContract.buy.value(msg.value)(customerAddress);
        emit Deposit(msg.value, msg.sender);

        
        if(msg.value > 10000000000000000)
        {
            uint extraTickets = SafeMath.div(msg.value, 10000000000000000); 
            
            
            ticketNumber += extraTickets;
        }

         
        if(ticketNumber >= winningNumber)
        {
            
            poohContract.exit();

            
            payDev(owner);

            
            payWinner(customerAddress);

           
           resetLottery();
        }
        else
        {
           ticketNumber++;
        }
    }